home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pine / imap_archive / text0103.txt < prev    next >
Encoding:
Text File  |  1993-07-02  |  1.3 KB  |  36 lines

  1. >     Why does ximap bother to have a message number
  2. >map at all?  If you keep a pointer to the elt
  3. >instead (being sure to lock it!) that's all you
  4. >need.  The elt will always have the correct message
  5. >number for that message, or 0 if it has been
  6. >expunged (in which case the elt becomes a zombie
  7. >elt).
  8.  
  9. In order to use the X athena widgets Kevin Brock modified the Xaw list widget, 
  10. and also created a special "browser" widget so things like double-click and 
  11. SHIFT-select could be handled. Ximap or the newer Xlview call the browser 
  12. widget routines. This latter widget uses a map which requires the message 
  13. number as one of its elements to build the list widget's own map which demands 
  14. message number like indices. 
  15.  
  16. I believe the "browser" widget could be rewritten to use the pointer to the 
  17. elt, and then a special call could be made to update after an expunge which 
  18. would nuke the zombies from the list, and redisplay the browser. 
  19.  
  20. All in all, such a rewrite is not worth the pain. When this code breaks it 
  21. usually causes a crash in the bowels of xlib somewhere. We haven't had such a 
  22. crash in a long, long time and so I think you can understand our hesitancy
  23.  
  24. A better choice would be to one day abandon the Xaw's. A good job for a student
  25. ;-).
  26.  
  27. Read windows do use the elt, and thus cope well with expunging.
  28.  
  29. Bill
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.